#include <iostream>
#include <memory>
#include "threadpool.hpp"
#include "Task.hpp"
#include "Log.hpp"
using namespace log_ns;
int main()
{
    EnableScreen();
    std::string a = "name";
    //std::unique_ptr<ThreadPool<Task>> td = std::make_unique<ThreadPool<Task>>();
    // td->Init();
    // td->Strat();
    int cnt = 10;
    while(cnt--)
    {
        usleep(10000);
        Task a(1, 1);
        ThreadPool<Task>::GetThreadPool()->Equeue(a);
        sleep(1);
    }
    ThreadPool<Task>::GetThreadPool()->Stop();
}